import 'package:dashbook/dashbook.dart';
import 'package:flame/game.dart';
import 'package:flame_examples/stories/camera_and_viewport/follow_object.dart';
import 'package:flame_examples/stories/camera_and_viewport/zoom.dart';

void addCameraAndViewportStories(Dashbook dashbook) {
  dashbook.storiesOf('Camera & Viewport')
    ..add(
      'Follow Object',
      (context) => GameWidget(
        game: CameraAndViewportGame(
          viewportResolution: Vector2(
            context.numberProperty('viewport width', 500),
            context.numberProperty('viewport height', 500),
          ),
        ),
      ),
    )
    ..add(
      'Zoom',
      (context) => GameWidget(
        game: ZoomGame(
          viewportResolution: Vector2(
            context.numberProperty('viewport width', 500),
            context.numberProperty('viewport height', 500),
          ),
        ),
      ),
    );
}
